@extends('home.layout')
@section('css')
	.search_goods_content{
		width:1200px;
		background:red;
		margin-top:40px;
		margin:0 auto;
	}
	.img{
		width:224px;
		height:400px;
		margin:20px 8px 0 8px;	
		float:left;
	}
	.image{
		width:224px;
		height:340px;
		<!-- background:yellow; -->
	}
	.image_title{
		width:224px;
		height:60px;
		<!-- background:green; -->
	}
	.index2_goods_title_1{
		width:224px;
		height:30px;
		line-height:30px;
		<!-- background:red; -->
	}
	.index2_goods_title_2{
		width:224px;
		height:30px;
		<!-- background:pink; -->
		line-height:30px;
		display:block;white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
	}
@endsection
@section('content')
	<div class="search_goods_content">
<!--    <div class="img">
			<div class="image">图片放在此处</div>
			<div class="image_title">
				<div class="index2_goods_title_1">
					<span style="float:left;font-size:20px;color:#f69;">￥999</span>
					<span style="float:right;">销量:0&nbsp;</span>
				</div>
				<div class="index2_goods_title_2">
					&nbsp;&nbsp;文字写在此处文字写在此处文字写文字写处文字写处处文字写处文字写处文字写处文字写处文字写处文字写处
				</div>
			</div>
		</div> -->
		@foreach($data as $k=>$g)
			<div class="img">
				<div class="image"><a href="/home/goods/details/{{$g->id}}"><img src="{{$g->logo}}"></a></div>
				<div class="image_title">
					<div class="index2_goods_title_1">
						<span style="float:left;font-size:20px;color:#f69;">￥{{$g->value}}</span>
						<span style="float:right;">销量:{{$g->sellnum}}&nbsp;</span>
					</div>
					<div class="index2_goods_title_2">
						&nbsp;&nbsp;<a href="/home/goods/details/{{$g->id}}">{{$g->goodsname}}</a>
					</div>
				</div>
			</div>
		@endforeach
	</div>
@endsection